#ifndef __MULTI_FILE_BUNDLE__
#define __MULTI_FILE_BUNDLE__

namespace xm
{
	//////////////////////////////////////////////////////////////////////////
	//
	//	File Foramt
	//

	enum 
	{
		SecOptRecTable = 1,					// 
	};

	struct fhdr_t
	{
		uint8_t		info[256];				// 
		uint8_t		tags[4];				// == MFFB		
		uint16_t	ffver;					// file format version
		uint8_t		coder;					// 'z' = zlib, 0 == none
		uint8_t		opts;					
		uint64_t	dbc_enc;				// data byte count, encoded.
		uint64_t	dbc_dec;				// data byte count, decoded.
		uint16_t	files;
		uint8_t		datmd5[16];				// data md5;
		uint32_t	chksum;					// hdr checksum
		//uint8_t		pad_to_512[0];
	};

	struct fsect_t
	{
		uint8_t		opts;					// 
		uint8_t		extcb;					// how many bytes followed header
		uint16_t	namelen;				// 
		uint32_t	bytes;					// 4
	};

	// SecOptRecTable
	struct rec_sect_t
	{
		uint32_t	tver32;					// 4		
		uint8_t		reverse[8];				// form diff
	};

};


#endif